import {WeaTools} from 'ecCom'

export const baseSetting = params => {   //目标基础设置
    return WeaTools.callApi('/api/workrelate/goal/baseSetting', 'POST', params);
}

export const personBaseSetting = params => { //获取目标负责人
     return WeaTools.callApi('/api/workrelate/goal/personBaseSetting', 'POST', params);
}

export const personSaveBaseSetting = params => { //保存目标负责人
     return WeaTools.callApi('/api/workrelate/goal/personSaveBaseSetting', 'POST', params);
}

export const personDeleteBaseSetting = params => { //删除目标负责人
     return WeaTools.callApi('/api/workrelate/goal/personDeleteBaseSetting', 'POST', params);
}

export const goalPersonImportInfo = params => { //目标导入
     return WeaTools.callApi('/api/workrelate/goal/goalPersonImportInfo', 'POST', params);
}

export const downLoadTemplate = params => { //模板下载
     return WeaTools.callApi('/api/workrelate/goal/downloadTemplate', 'GET', params);
}

export const getImportLog = params => { //定时获取
     return WeaTools.callApi('/api/workrelate/goal/getImportLog', 'GET', params);
}

export const goalExport = params => { //目标导出
     return WeaTools.callApi('/api/workrelate/goal/goalExport', 'GET', params);
}

export const goaltableList = params => { //目标列表
     return WeaTools.callApi('/api/workrelate/goal/goaltableList', 'GET', params);
}

export const getExportColumn = params => {//获取定制列字段
     return WeaTools.callApi('/api/ec/dev/table/showCol', 'GET', params);
 }